import { Component, OnInit,Output,EventEmitter } from '@angular/core';

@Component({
  selector: 'app-database-search',
  templateUrl: './database-search.component.html'
})
export class DatabaseSearchComponent implements OnInit {

  constructor() { 
    //查询数据初始化
    this.srarchData = {
      queryCriteria:'',
    }
  }

  ngOnInit() {
  }

  @Output()
  searchOutput: EventEmitter<any> = new EventEmitter();

  public srarchData:any;

  search(){
    this.searchOutput.emit(this.srarchData.queryCriteria);
  }

  //响应搜索
  changesearch(){
    this.search();
  }

}
